package com.lnt.spring.bean;

import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @title : spring 销毁
 * @createDate : 2021-11-18 16:26
 * @creater : LuNanTing
 * @className : Dept
 */
@Component
public class DeptTest {

    @PreDestroy
    public void destory(){
        System.out.println("=================================");
        System.out.println("==========[dept bean销毁]==========");
    }
}
